import request from '@/utils/request'

/** 服务名 */
const service_name = 'search'

/** 通过Elasticsearch获取博客列表 */
export function listToElasticSearch(query) {
  return request({
    url: `/${service_name}/search/elasticSearchBlog`,
    method: 'get',
    params: query
  })
}